package com.housediyadmin.view.components
{
	import com.housediyadmin.events.TypeXMLAdminEvent;
	import com.housediyadmin.model.ListTypeModel;
	import com.housediyadmin.view.GoodsAdminView;
	
	import flash.events.MouseEvent;
	import org.robotlegs.mvcs.Mediator;
	
	
	/**
	 * 
	 * @author liaoruohuai
	 * 
	 */
	public class GoodsTypeAdminMediator extends Mediator
	{
		[Inject]
		public var view:GoodsTypeAdminView;
		
		[Inject]
		public var model:ListTypeModel;
		
		override public function onRegister():void
		{
			view.selectedIndex = 0;
			dispatch(new TypeXMLAdminEvent(TypeXMLAdminEvent.LOAD_TYPE_XML));			
		}
	}
}